package com.imc.beans;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * JokeList entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "joke_list", catalog = "imcdbserver")
public class JokeList implements java.io.Serializable {

	// Fields

	private Integer num;
	private String type;
	private String result;

	// Constructors

	/** default constructor */
	public JokeList() {
	}

	/** full constructor */
	public JokeList(String type, String result) {
		this.type = type;
		this.result = result;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "num", unique = true, nullable = false)
	public Integer getNum() {
		return this.num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	@Column(name = "type", length = 128)
	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	@Column(name = "result", length = 16777215)
	public String getResult() {
		return this.result;
	}

	public void setResult(String result) {
		this.result = result;
	}

}